using System;
using System.Collections.Generic;

namespace BotonJXC.Entity
{
	/// <summary>
	/// InStocks
	/// </summary>
	public class InStocks :BaseEntity
	{
		public InStocks()
		{
			
		}
		/// <summary>
		/// id
		/// </summary>
		public virtual int InId{ get; set; }
        /// <summary>
        /// 编码
        /// </summary>
		public virtual string InSn{ get; set; }
		/// <summary>
        /// 类型
		/// 1:配入库
		/// </summary>
		public virtual string InType{ get; set; }

		//public virtual Int32 WarehouseId{ get; set; }
        /// <summary>
        /// 配出分店
        /// </summary>
        public virtual Store OutStore { get; set; }
        /// <summary>
        /// 出库库存地
        /// </summary>
        public virtual Warehouse OutWarehouse { get; set; }
        /// <summary>
        /// 配入分店
        /// </summary>
        public virtual Store InStore { get; set; }
        /// <summary>
        /// 入库库存地
        /// </summary>
        public virtual Warehouse InWarehouse { get; set; }
        //public virtual Int32 CreaterId{ get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public virtual Account Account { get;set; }
        /// <summary>
        /// 创建时间
        /// </summary>
		public virtual DateTime? CreateTime{ get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
		public virtual string AuditStatus{ get; set; }
		//public virtual Int32 AuditUser{ get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public virtual Account AuditAccount { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>            
		public virtual DateTime? AuditTime{ get; set; }
        /// <summary>
        /// 审核备注
        /// </summary>
		public virtual string AuditRemark{ get; set; }
		//public virtual Int32 OrderId{ get; set; }
        /// <summary>
        /// 关联订单
        /// </summary>
        public virtual Orders Orders { get; set; }
		
       // public virtual Int32 OutId{ get; set; }

        /// <summary>
        /// 关联出库单iD
        /// </summary>
        public virtual OutStocks OutStocks { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
		public virtual string Remark{ get; set; }
		/// <summary>
        /// 单据产生地
		/// 1: 分店管理
         ///2: 配送中心
        ///4: 加工间
		/// </summary>
		public virtual string CreatePlace{ get; set; }
		/// <summary>
		/// 用于数据权限控制
        /// 归属门店
		/// </summary>
		public virtual Int32? OrgId{ get; set; }
        /// <summary>
        /// 归属部门
        /// </summary>
        public virtual Int32? OrgDepId { get; set; }
        /// <summary>
        /// 货品信息
        /// </summary>
        public virtual IList<InStocksProducts> InStocksProductsList { get; set; }


        /// 管理部
        /// </summary>
        public virtual Department MgDepartment { get; set; }
        /// <summary>
        /// 财务部
        /// </summary>
        public virtual Department FinDepartment { get; set; }

        /// <summary>
        /// 配送审核人
        /// </summary>
        public virtual Account OutAuditAccount { get; set; }
        /// <summary>
        /// 配送审核时间
        /// </summary>
        public virtual DateTime? OutAuditTime { get; set; }
        /// <summary>
        /// 入库审核人
        /// </summary>
        public virtual Account InAuditAccount { get; set; }
        /// <summary>
        /// 入库审核日期
        /// </summary>
        public virtual DateTime? InAuditTime { get; set; }
        /// <summary>
        /// 打印次数
        /// </summary>
        public virtual Int32? PrintTime { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public virtual Int32? EffDay { get; set; }

        /// <summary>
        /// 业务员
        /// </summary>
        public virtual string Salesman { get; set; }
	}
}

